#include "DialogEditReview.h"

//(*InternalHeaders(DialogEditReview)
#include <wx/intl.h>
#include <wx/string.h>
//*)

//(*IdInit(DialogEditReview)
const long DialogEditReview::ID_STATICBOX1 = wxNewId();
const long DialogEditReview::ID_TEXTCTRL1 = wxNewId();
const long DialogEditReview::ID_STATICBOX2 = wxNewId();
const long DialogEditReview::ID_TEXTCTRL2 = wxNewId();
const long DialogEditReview::ID_BUTTON1 = wxNewId();
const long DialogEditReview::ID_BUTTON2 = wxNewId();
//*)

BEGIN_EVENT_TABLE(DialogEditReview,wxDialog)
	//(*EventTable(DialogEditReview)
	//*)
END_EVENT_TABLE()

DialogEditReview::DialogEditReview(wxWindow* parent,wxWindowID id,const wxPoint& pos,const wxSize& size)
{
	//(*Initialize(DialogEditReview)
	Create(parent, id, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE, _T("id"));
	SetClientSize(wxSize(447,568));
	Move(wxDefaultPosition);
	StaticBox1 = new wxStaticBox(this, ID_STATICBOX1, _("书名"), wxPoint(40,48), wxSize(48,24), 0, _T("ID_STATICBOX1"));
	TextCtrl1 = new wxTextCtrl(this, ID_TEXTCTRL1, _("Text"), wxPoint(104,48), wxSize(152,27), 0, wxDefaultValidator, _T("ID_TEXTCTRL1"));
	StaticBox2 = new wxStaticBox(this, ID_STATICBOX2, _("文章"), wxPoint(40,144), wxDefaultSize, 0, _T("ID_STATICBOX2"));
	TextCtrl2 = new wxTextCtrl(this, ID_TEXTCTRL2, _("Text"), wxPoint(96,144), wxSize(296,336), 0, wxDefaultValidator, _T("ID_TEXTCTRL2"));
	Button1 = new wxButton(this, ID_BUTTON1, _("提交"), wxPoint(112,512), wxDefaultSize, 0, wxDefaultValidator, _T("ID_BUTTON1"));
	Button2 = new wxButton(this, ID_BUTTON2, _("关闭"), wxPoint(264,512), wxDefaultSize, 0, wxDefaultValidator, _T("ID_BUTTON2"));
	
	Connect(ID_BUTTON1,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&DialogEditReview::OnSubmit);
	Connect(ID_BUTTON2,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&DialogEditReview::OnClose);
	//*)
}

DialogEditReview::~DialogEditReview()
{
	//(*Destroy(DialogEditReview)
	//*)
}


void DialogEditReview::OnSubmit(wxCommandEvent& event)
{
}

void DialogEditReview::OnClose(wxCommandEvent& event)
{
    this->Show(false);
}
